package com.cargohu.aishouyu.member.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cargohu.aishouyu.member.entity.ChatHistory;
import com.cargohu.aishouyu.member.req.ChatHistoryRequest;
import com.cargohu.aishouyu.member.resp.ChatHistoryDetailVo;
import com.cargohu.aishouyu.member.resp.ChatHistoryResponse;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 聊天记录 Mapper 接口
 *
 * @author aaron.wang
 * @since 2023-11-27
 */
@Mapper
public interface ChatHistoryMapper extends BaseMapper<ChatHistory> {

    /**
     * 聊天记录详情
     *
     * @param id
     * @return
     */
    ChatHistoryDetailVo getChatHistoryById(Long id);

    /**
     * 聊天记录分页列表
     *
     * @param chatHistoryRequest
     * @return
     */
    List<ChatHistoryResponse> getChatHistoryList(ChatHistoryRequest chatHistoryRequest);

}
